/**
 * @Date: Mar 3, 2010 1:56:32 PM
 */
package com.philip.journal.home.dao;

import java.util.List;

import com.philip.journal.home.bean.ConfigItem;

/**
 * @author cry30
 */
public interface ConfigItemDAO {

    /**
     * Read all ConfigItem bean ordered by the config ID.
     *
     * @return empty list when no match is found.
     */
    List<ConfigItem> readAll();

    /**
     * Read all ConfigItem under the specified parentId. 0 parentId will be equivalent to null parentId.
     *
     * @param parentId ID of parent to read Children from.
     *
     * @return empty list when no match is found.
     */
    List<ConfigItem> readAllByParent(long parentId);
}
